<!DOCTYPE html>
<html lang="zh-CH">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表格</title>
</head>

<body>
    <!--表格居中"align";边框"border";单元边沿与其内容间的空白"cellpadding"；单元格间的空白"cellspacing";表格宽度"width"等属性实际开发不常用，多用CSS实现-->
    <!--表格标签<table>-->
    <table align="center" border="1" cellpadding="5" cellspacing="1" width="300">
        <!--行<tr>-->
        <!--<thead>、<tbody>方便折叠-->
        <thead>
            <tr>
                <!--表头单元格<th>,里面的文字会加粗居中显示-->
                <th>姓名</th>
                <th>学号</th>
                <th>成绩</th>
                <th>排名</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <!--普通单元格-->
                <td>张三</td>
                <td>001</td>
                <td>94</td>
                <td>2</td>
            </tr>
            <tr>
                <!--跨列合并"colspan"-->
                <td>李四</td>
                <td>002</td>
                <td>91</td>
                <td>5</td>
            </tr>
            <tr>
                <!--跨列合并"rowspan"-->
                <td rowspan="3">王五</td>
                <td>003</td>
                <td>93</td>
                <td>3</td>
            </tr>
            <tr>
                <td>赵六</td>
                <td>004</td>
                <td>92</td>
                <td>4</td>
            </tr>
            <tr>
                <td>周七</td>
                <td>005</td>
                <td>98</td>
                <td>1</td>
            </tr>
            <tr>
                <!--跨列合并"rowspan"-->
                <td colspan="3">王五</td>
                <td>003</td>
                <td>93</td>
                <td>3</td>
            </tr>
            <tr>
                <td>赵六</td>
                <td>004</td>
                <td>92</td>
                <td>4</td>
            </tr>
            <tr>
                <td>周七</td>
                <td>005</td>
                <td>98</td>
                <td>1</td>
            </tr>
        </tbody>
    </table>
</body>

</html>